<form action="<?=base_url()?>stats/shopping_list/pdf" name="login" method="POST">
    <div class="preview"><div class="subtitle">
            Select a date range: (Dates are inclusive)
        </div></div>
<div id="preset_section" class="form_section">
    <div class="title">Select pre-set interval: <span class="subtitle">(optional)</span></div>
    <select id="preset_interval">
        <option value="C">Custom</option>
        <option value="1W">+1 Week</option>
        <option value="2W">+2 Weeks</option>
        <option value="3W">+3 Weeks</option>
        <option value="1M">+1 Month</option>
        <option value="2M">+2 Months</option>
        <option value="3M">+3 Months</option>
    </select>
    <div class="warning_section"></div>
</div>
<div id="from_date_section" class="form_section">
    <div class="title">Select start date: <span class="subtitle">(required)</span></div>
    <div class="datepick">
    <input id="from_date" type="text" name="from_date"/>
    </div>
    <div class="warning_section"></div>
</div>
<div id="to_date_section" class="form_section">
    <div class="title">Select end date: <span class="subtitle">(required)</span></div>
    <div class="datepick">
    <input id="to_date" type="text" name="to_date"/>
    </div>
    <div class="warning_section"></div>
</div>
    <div class="form_section">
    
<div class="title">Print document: <span class="subtitle">(to .pdf)</span></div> 
<div id="button_section" class="form_section">  
<input type="submit" name='meal' class="button" value="Meal Votes List"/>
<input type="submit" name='ingredient' class="button" value="Ingredient List"/>
</div>
    </div>

</form>
<div id="success_area" class="preview">
<?if($response != ""):?>
    <div class="form_section">
    <h1><?=$response?></h1>
    </div>
<?endif;?>
</div>